INCLUDE= -I ./include -I$(shell root-config --incdir)
LIBRARY= $(shell root-config --libs)
CC= g++
FLAGS= -std=c++0x

all: main rundata
	$(CC) -o ./acess ./build/*.o $(FLAGS) $(LIBRARY)

clean:
	rm ./build/*.o

main:
	$(CC) -c -o ./build/main.o ./main.cpp $(FLAGS) $(INCLUDE)
	
rundata:
	$(CC) -c -o ./build/RunData.o ./src/RunData.cpp $(FLAGS) $(INCLUDE)
